{% extends 'basic_app/master.html' %}
{% block tag_left %}
    {% include 'basic_app/tag_left_user.html' %}
{% endblock %}
{% block userinfo %}
    <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
        <h2 class="page-header">用户详情页</h2>
        <form class="form-horizontal" action={{ request.path }}   method="post">
            <div class="form-group" style="display:none" >
                <label  class="col-sm-2 control-label">id：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="用户名" name="v_id" value={{ more_result.id }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Username：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="用户名" name="add_user" value={{ more_result.username }} readonly="true" >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Password：</label>
                <div class="col-sm-10">
                    <input type="password" class="form-control"  placeholder="密码" name="add_pwd" value={{ more_result.password }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Email：</label>
                <div class="col-sm-10">
                    <input type="email" class="form-control" placeholder="邮箱" name="add_email" value={{ more_result.email }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">status：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="用户状态" name="add_status" value={{ more_result.status }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Phone_number：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="手机号" name="add_phone" value={{ more_result.iphone }} readonly="true" >
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">Dept：</label>
                <div class="col-sm-10">
                    <select class="form-control" id="dept_select"    name="add_dept" dept= {{ more_result.dept }} readonly="true">
                        <option>DBA</option>
                        <option>Dev</option>
                    </select>
                </div>
            </div>
                 <div class="form-group">
                <label  class="col-sm-2 control-label">cr_time：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="用户状态"  name="add_crtime" value={{ more_result.crtime }} readonly="true">
                </div>
            </div>
            <div class="form-group">
                <label  class="col-sm-2 control-label">ch_time：</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" placeholder="用户状态" name="add_chtime" value={{ more_result.chtime }} readonly="true">
                </div>
            </div>
            <div class="col-sm-10">
                <div style="text-align:center;vertical-align:middle;"><button type="submit" class="btn ">返回</button></div>
            </div>
        </form>
    </div>
{% endblock  %}
{% block script %}
    <script>
        window.onload=function(){
            var dept_se = document.getElementById("dept_select").getAttribute("dept");
            document.getElementById('dept_select').value=dept_se;}
    </script>
{% endblock %}